home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / windownt / perlnt.zip / src / makefile < prev    next >
Encoding:
Makefile  |  1993-07-25  |  1.4 KB  |  75 lines

  1. !include <ntwin32.mak>
  2.  
  3. YACC = yacc
  4. SLN = copy
  5. RMS = del
  6.  
  7. PERLDEBUG=0
  8.  
  9. !IF $(PERLDEBUG) == 0
  10.  
  11. cflags = -c -W1 -G4 -Gf -D_X86_=1
  12. cdebug = -O2gi
  13. lflags = $(conflags) -debug:none -debugtype:both
  14.  
  15. !ELSE
  16.  
  17. cflags = -c -W3 -G4 -D_X86_=1
  18. cdebug = -Zi -Od
  19. lflags = $(conflags) -debug:full -debugtype:both
  20.  
  21. !ENDIF
  22.  
  23. libs = libc.lib kernel32.lib
  24. socklibs = wsock32.lib advapi32.lib
  25.  
  26. public = perl.exe
  27.  
  28. shellflags = 
  29.  
  30. incs =
  31. defs = -DNT
  32.  
  33. # To use an alternate make, set  in config.sh.
  34.  
  35. MAKE = nmake
  36.  
  37. CCCMD = $(cc) -nologo $(incs) $(cflags) $(cdebug) $(defs)
  38.  
  39. obj1 = array.obj cmd.obj cons.obj consarg.obj doarg.obj doio.obj dolist.obj
  40. obj2 = eval.obj form.obj $(mallocobj) perl.obj regcomp.obj regexec.obj
  41. obj3 = stab.obj str.obj toke.obj util.obj dump.obj nt.obj
  42.  
  43. obj = $(obj1) $(obj2) $(obj3)
  44.  
  45. # grrr
  46. SHELL = cmd.exe
  47.  
  48. .c.obj:
  49.     $(CCCMD) $*.c
  50.  
  51. all: perl.exe perlglob.exe
  52.  
  53. perl.exe: perly.obj $(obj) hash.obj usersub.obj 
  54.     $(link) $(lflags) $(obj) hash.obj perly.obj usersub.obj $(libs) $(socklibs) -out:perl.exe
  55.  
  56. perlglob.exe: perlglob.obj
  57.     $(link) $(lflags) perlglob.obj d:\mstools\lib\setargv.obj -out:perlglob.exe $(libs)
  58.  
  59. perly.obj: perly.c perly.h $(h)
  60.     $(CCCMD) perly.c
  61.  
  62. install: all
  63.     ./perl installperl
  64.  
  65. clean:
  66.     del *.obj perl.exe perlglob.exe
  67.  
  68. test: perl
  69.     - cd t && chmod +x TEST */*.t
  70.     - cd t && (rm -f perl; $(SLN) ../perl perl) && ./perl TEST </dev/tty
  71.  
  72.  
  73. $(obj): perl.h config.h nt.h
  74.  
  75.